<template>
  <div class="user-warp">
    <player-info :playInfo="playerInfo" :address="address"></player-info>
    <div class="user-bg"></div>
    <div class="content" v-if="(userAction == 7 || playerInfo.status === 3)">主播已被禁播</div>
    <div class="content anchorLeave" v-else>抱歉，直播已结束，主播已离开</div>
  </div>

</template>

<script>
  import util from '../common/util.js';
  import PlayerInfo from './common/PlayerInfo.vue';
  export default {
    data () {
      return {
        playerInfo: {
          sellerId: this.$route.query.sellerId || '',
          avatar: this.$route.query.avatar || '',
          nickname: this.$route.query.nickname || '',
          status: parseInt(this.$route.query.status) || null
        },
        address: this.$route.query.address || null,
        userAction: this.$route.query.userAction || 5,
      }
    },
    props: {

    },
    components: {
      PlayerInfo
    },
    computed: {},
    beforeMount(){

    },
    mounted(){
      console.log(this.playerInfo.status === 3);
      /*if(this.$route.query.startDate){
        if(this.$route.query.startDate instanceof Date){
          this.startDate = this.$route.query.startDate;
        }else{
          this.startDate = this.$route.query.startDate;
        }
      }*/

    },
    activated(){

    },
    methods: {
      formatDate: util.formatDate1
    }
  }
</script>

<style lang="scss" scoped></style>
